﻿This is the BX310x UART loader which enables you to flash new firmware onto a BX310x device. It is a command line tool built to run in Windows/DOS. The source code is available upon request from your FAE (maybe from the source in the future).

Procedure to use the tool is as follows.
-	Set GPIO27 high. This can be achieved by using a jumper between GPIO27 pin and ‘PADS’ pin.
-	Reset the board with the terminal emulator connected.
This is the output you should get, notice the last list with “WSIH”. This means the bootloader is in the correct mode.
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff80d0,len:4
load:0x3fff80d4,len:540
load:0x40078000,len:0
load:0x40078000,len:18412
entry 0x40078c2c
ÀWSIHÀ
-	Close the terminal emulator
-	Run the command “BX31xxBlTest.exe comXX -v” (where XX is the com port number you would normally send AT commands over), any unrecognized commands will result in the help being output with all of the options. 

The above command line is an example, to download firmware you need to specify the correct switches (as given in the help output) and the appropriate firmware .bin file.

If you get the connection failed -50, try again, it means that port is not ready, and this can be from windows not finished closing the port or initialising the port.
